<?php
include_once('domain.php');
#------- SYSTEM -------#
define('USE_MEMCACHED'							, 0); /**0:OFF; 1:ON*/
define('USE_MONGODB'							, 0); /**0:OFF; 1:ON*/
define('USE_STORE_PROCEDURE'					, 1); /**0:OFF; 1:ON*/
define('UPDATE_JS'								, time());
define('UPDATE_CSS'								, time());
#------- SESSION - COOKIE - CACHE -------#
define('PREFIX_SESSION_COOKIE'					, strtoupper(DOMAIN) . '_');
define('COOKIE_AUTH'							, PREFIX_SESSION_COOKIE . 'COOKIE_AUTH');
define('COOKIE_PASSWORD'						, PREFIX_SESSION_COOKIE . 'COOKIE_PASSWORD');
define('SESSION_FRONTEND_AUTH'					, PREFIX_SESSION_COOKIE . 'FRONTEND_AUTH');
define('SESSION_BACKEND_AUTH'					, PREFIX_SESSION_COOKIE . 'BACKEND_AUTH');
define('SESSION_CAPTCHA'						, PREFIX_SESSION_COOKIE . 'CAPTCHA');
define('SESSION_BACKURL'						, PREFIX_SESSION_COOKIE . 'BACKURL');
define('SESSION_MESSAGE'						, PREFIX_SESSION_COOKIE . 'MESSAGE');
define('SESSION_ERROR'							, PREFIX_SESSION_COOKIE . 'ERROR');
define('NOCACHE'								, PREFIX_SESSION_COOKIE . 'NOCACHE');
#------- DEFAULT ---------#
define('COUNTRY_DEFAULT'						, 'VN');
define('ROOT_ROLE'								, 3);
#------- VALIDATE LENGTH ---------#
define('VL_NAME_MINLENGTH'						, 2);
define('VL_NAME_MAXLENGTH'						, 150);
define('VL_SHORT_MINLENGTH'						, 10);
define('VL_SHORT_MAXLENGTH'						, 255);
define('VL_CONTENT_MINLENGTH'					, 20);
define('VL_TAG_MAXLENGTH'						, 100);
#------- IMAGE ---------#
define('IMAGE_SIZE'								, 1);//1mb
define('IMAGE_FULL_WIDTH'						, 960);
define('IMAGE_THUMB_WIDTH'						, 320);
define('IMAGE_SMALL_WIDTH'						, 160);
define('IMAGE_SMALL_HEIGHT'						, 160);
#------- CATEGORY/ALBUM TYPE -------#
define('EDUCATION_TYPE'							, 1);
define('EDUCATION_SPEC_TYPE'					, 2);
define('EDUCATION_CENTRAL_TYPE'					, 3);
define('SHARE_TYPE'								, 4);
define('SHARE_MANUAL_TYPE'						, 5);
define('EVENT_TYPE'								, 6);
define('PROMOTION_TYPE'							, 7);
define('PRODUCT_TYPE'							, 8);
define('HOUSE_FOR_RENT_TYPE'					, 9);
define('FOOD_TYPE'								, 10);
define('BUS_TYPE'								, 11);
define('SOS_TYPE'								, 12);

#------- ADV -------#
define('NONE_ADV'								, 0);
define('HOMEPAGE_ADV'							, 1);

if(file_exists(ROOT_DIR . '/configs/cache.php')) {
	include_once(ROOT_DIR . '/configs/cache.php');
}
if(file_exists(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/cache.info.php')) {
	include_once(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/cache.info.php');
}
if(file_exists(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/link.php')) {
	include_once(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/link.php');
}
if(file_exists(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/variable.php')) {
	include_once(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/variable.php');
}
if(file_exists(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/email.php')) {
	include_once(ROOT_DIR . '/' . MOD_FRONTEND . '/configs/email.php');
}